package com.zts.modules.sys.mapper;

import com.zts.base.data.CrudMapper;
import com.zts.modules.sys.entity.Para;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * Created by jisd on 2017/6/19.
 */
public interface ParaMapper extends CrudMapper<Para> {
    @SelectProvider(type = ParaSqlProvider.class, method = "get")
    Para get(Long var1);

    @SelectProvider(type = ParaSqlProvider.class, method = "getByEntity")
    List<Para> getByEntity(Para var1);

    @SelectProvider(type = ParaSqlProvider.class, method = "getList")
    List<Para> getList(Para var1, RowBounds var2);

    @UpdateProvider(type = ParaSqlProvider.class, method = "update")
    int update(Para var1);

    @InsertProvider(type = ParaSqlProvider.class, method = "insert")
    @SelectKey(statement = {"SELECT CURRVAL('seq_sys_para_id')"}, keyProperty = "id", before = false, resultType = Long.class)
    int insert(Para var1);

    @DeleteProvider(type = ParaSqlProvider.class, method = "delete")
    int delete(Para var1);
}
